
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<div th:fragment="mainside(title,active)">
	<aside class="main-sidebar">

		<!-- sidebar: style can be found in sidebar.less -->
		<section class="sidebar">

			<!-- Sidebar Menu -->
			<ul class="sidebar-menu" data-widget="tree">
				<li class="header">菜单</li>
				<!-- Optionally, you can add icons to the links -->
				<li th:class="${active}=='index'?'active':''"><a
					href="/admin/index"><i class="fa fa-link"></i> <span>首页</span></a></li>
				<li th:class="${active}=='user'?'active':''"><a
					href="/admin/user/index"><i class="fa fa-link"></i> <span>用户管理</span></a></li>
				<li th:class="${active}=='role'?'active':''"><a
					href="/admin/role/index"><i class="fa fa-link"></i> <span>角色管理</span></a></li>
				<li th:class="${active}=='resource'?'active':''"><a
					href="/admin/resource/index"><i class="fa fa-link"></i> <span>资源管理</span></a></li>

			</ul>
			<!-- /.sidebar-menu -->
		</section>
		<!-- /.sidebar -->
	</aside>
</div>
</html>